package com.jxl.springboot.game.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 用户登录记录表
 *
 * @author 江雪林
 * @create 2021-03-29
 */
public class UserLoginRecord {
    private Integer id;
    private Integer userId; //登录id
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date logTm;//登录时间
    private String logIp;//登录IP

    public UserLoginRecord() {
    }

    public UserLoginRecord(Integer userId, String logIp) {
        this.userId = userId;
        this.logIp = logIp;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getLogTm() {
        return logTm;
    }

    public void setLogTm(Date logTm) {
        this.logTm = logTm;
    }

    public String getLogIp() {
        return logIp;
    }

    public void setLogIp(String logIp) {
        this.logIp = logIp;
    }

    @Override
    public String toString() {
        return "UserLoginRecord{" +
                "id=" + id +
                ", userId=" + userId +
                ", logTm=" + logTm +
                ", logIp='" + logIp + '\'' +
                '}';
    }
}
